package com.yx.vectordb.impl.lucene;

import lombok.Getter;

import java.util.Map;

@Getter
public class LuceneSearchResult {
    private final String id;
    private final float score;
    private final Map<String, String> metadata;

    public LuceneSearchResult(String id, float score, Map<String, String> metadata) {
        this.id = id;
        this.score = score;
        this.metadata = metadata;
    }

    @Override
    public String toString() {
        return String.format("VectorSearchResult{id='%s', score=%f, metadata=%s}", id, score, metadata);
    }
}